const TokenKey = 'token'
const TokenKeyType = 'token_type'

export function getToken() {
  return uni.getStorageSync(TokenKey)
}

export function setToken(token) {
  return uni.setStorageSync(TokenKey, token)
}

export function getTokenType() {
  return uni.getStorageSync(TokenKeyType)
}

export function setTokenType(tokenType) {
  return uni.setStorageSync(TokenKeyType, tokenType)
}

export function removeToken() {
  return uni.removeStorageSync(TokenKey)
}
